package com.yanqu.road.server.cmd.activity.selectlottery.cross;

import com.yanqu.road.entity.activity.selectlottery.data.SelectLotteryUserData;
import com.yanqu.road.exception.BusinessException;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.SelectLotteryProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.CmdApi;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.gameplayer.module.activity.selectlottery.SelectLotteryModule;
import com.yanqu.road.server.manger.activity.monjinlottery.SelectLotteryMgr;
import com.yanqu.road.server.manger.activity.monjinlottery.pb.SelectLotteryPb;
import com.yanqu.road.server.protocol.Protocol;

@CmdApi(reqMsg = SelectLotteryProto.SelectLotterySyncNoticeFromCross.class, respMsg = SelectLotteryProto.SelectLotterySyncNoticeFromCross.class)
@Cmd(code = Protocol.S_SELECT_LOTTERY_SYNC_NOTICE_FROM_CROSS, desc = "通用自选抽奖-同步公告-跨服返回")
public class SelectLotterySyncNoticeFromCrossCmd extends AbstractCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
        SelectLotteryProto.SelectLotterySyncNoticeFromCross reqMsg = SelectLotteryProto.SelectLotterySyncNoticeFromCross.parseFrom(packet.getBytes());
        SelectLotteryMgr.syncNotice(reqMsg.getNoticeData());
    }

    @Override
    public void sendData(GamePlayer player) {}
}
